{extend name="index_base" /}
{block name="seo"}
<title>{$site_config['site_title']} - {$site_config['seo_title']}</title>
<meta name="keywords" content="{$site_config['seo_keyword']}">
<meta name="description" content="{$site_config['seo_description']}">
<link rel="stylesheet" href="__HOME__/css/index.css">
{/block}
{block name="header"}
    <a href="/" class="logo external">
        <img src="__HOME__/mobile/images/logo.png" />
    </a>
    <div class="bar bar-header-secondary">
        <div class="searchbar">
            <a class="searchbar-cancel">取消</a>
            <div class="search-input">
                <label class="icon icon-search" for="search"></label>
                <form action="javaScript:void(0)" method="get">
                    <input type="search" id='search' placeholder='输入关键字...' />
                </form>
            </div>
        </div>
    </div>
    {if session('userid')}
    <a href="/user/index.html" class="myico iconfont icon-wode"></a>
    {else /}
    <a href="/user/login.html" class="myico iconfont icon-wode"></a>
    {/if}
{/block}
{block name="body"}
<div class="content">
    <ul class="index-list-nav">
        <div class="clearfix">

            <li>
                <a href="/" target="_self" data-no-cache="true">网站首页</a>
            </li>
            {volist name="nav" id="vo"}
            <li {if $URI eq $vo['link']}class="hover"{/if}>
               <a href="{$vo.link}" target="{$vo.target}">{$vo.name}</a>
            </li>
            {/volist}
        </div>
    </ul>
    <!-- Slider -->
    <div class="swiper-container" data-space-between='6'>
        <div class="swiper-wrapper">
            {volist name="carousel" id="vo"}
            <div class="swiper-slide"><a href="/html/{$vo.id}.html"><img src="{$vo.cover_img}" onerror="this.src='__HOME__/images/no-img1.png';"></a></div>
            {/volist}
        </div>
        <div class="swiper-pagination"></div>
    </div>
    {include file="index/gg"}
    {include file="index/gg6"}
    <ul class="fourico clearfix">
        <li>
            <a href="/list/all.html" data-no-cache="true">
                <img src="//static.115z.com/m/img/list.png" />
                资源
            </a>
        </li>
        <li>
            <a href="/top.html" data-no-cache="true">
                <img src="//static.115z.com/m/img/hot.png" />
                擂台榜
            </a>
        </li>
    </ul>
    <div class="news">
        <div class="titles">
            近期更新
            <a href="/list/all.html" class="iconfont icon-gengduo"  data-no-cache="true"></a>
        </div>
        <ul class="clearfix">
            {volist name="newArticles" id="vo"}
            <li>
                <a href="<?php echo($vo['out_link']?:'/html/'.$vo['id'].'.html'); ?>" target="_blank" title="{$vo.title}">{if $vo.is_ad}<i class="ad">广告</i>{elseif $vo.is_essence}<i class="jx"></i>{else /}{/if}<span style="color:{$vo.color}">{$vo.title}</span></a>
                <font <?php if($vo['is_ad'] || date('m-d',strtotime($vo['publish_time']))==date('m-d')) echo('class="new-time"'); ?>>{if $vo.is_ad}{:date('m-d')}{else /}{:date('m-d',strtotime($vo['publish_time']))}{/if}</font>
            </li>
            {/volist}
        </ul>
    </div>
{if in_array(1, $homnePageShowArr)}
    <div class="tg_new">
        <div class="titles">
            投稿作者
        </div>
        <div class="overflows">
            <ul class="tg_new_ul clearfix">
                {volist name="newPostTop" id="vo"}
                <li>
                    <a href="/person/{$vo.uuid}.html"  data-no-cache="true">
                        <img src="{$vo.avatar}" onerror="this.src='__PUBLIC__/images/userhead/default.png';" />
                        {$vo.nickname}</a>
                </li>
                {/volist}
            </ul>
        </div>
    </div>
{/if}
    <div class="top">
        <div class="titles">
            人气月榜
        </div>
        <ul class="xuhaoul clearfix">
            {volist name="monthRank" id="vo" length='10'}
            <li><a href="/html/{$vo.id}.html"  data-no-cache="true"> <i>{$key+1}</i>{$vo.title}</a></li>
            {/volist}
        </ul>
    </div>
    <div class="suiji">
        <div class="titles">
            随机推荐
        </div>
        <ul class="twdd">
            {volist name="recommend" id="vo"}
            <li>
                <a href="/html/{$vo.id}.html" class="clearfix"  data-no-cache="true">
                    <div class="list-img">
                        <img src="{$vo.cover_img}" onerror="this.src='__HOME__/images/no-img1.png';"/>
                    </div>
                    <div class="info">
                        <h3>{$vo.title}</h3>
                        <font class="">{$vo.publish_time}</font>
                    </div>
                </a>
            </li>
            {/volist}
        </ul>
    </div>
    <div class="others">
        <div class="titles">
            友情链接
            <a style="float: right" href="/about/friendlink.html">申请友链</a>
        </div>
        <ul class="clearfix">
            <li><a href="https://www.laysns.com" target="_blank"  data-no-cache="true">Laysns</a></li>
            {volist name="friendlinks" id="vo"}
            <li><a href="{$vo.link}" target="_blank"  data-no-cache="true">{$vo.title}</a></li>
            {/volist}
        </ul>
    </div>
    {include file="index/footer"}
</div>
{/block}
{block name="js"}
{/block}